﻿package problems.diningphilosophers.philosophers;

import problems.BenchmarkSemaphore;

public class RightHandedPhilosopher extends AbstractPhilosopher
{
    public RightHandedPhilosopher(BenchmarkSemaphore leftFork, BenchmarkSemaphore rightFork) {
    	super(leftFork, rightFork);
    }

    @Override
    public void getForks()
    {
        rightFork.waitOne();
        leftFork.waitOne();
    }

    @Override
    public void putForks()
    {
        rightFork.release();
        leftFork.release();
    }
}